package org.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.entity.WrongQuestionEntity;

import java.util.List;

public interface WrongQuestionService extends IService<WrongQuestionEntity> {
    // 保存错题记录
    void saveWrongQuestion(WrongQuestionEntity wrongQuestionEntity);

    // 更新错题记录
    void updateWrongQuestion(WrongQuestionEntity wrongQuestionEntity);

    // 删除错题记录
    void deleteWrongQuestion(int wrongId);

    // 查询单个错题记录
    WrongQuestionEntity getWrongQuestionById(int wrongId);

    // 查询所有错题记录
    List<WrongQuestionEntity> getAllWrongQuestions();

    // 根据学生ID查询错题记录
    List<WrongQuestionEntity> getWrongQuestionsByStudentId(int studentId);
}
